getBalance

Retrieves an account's balance (TotalAmount object) (when using current/future (no as-of date), or with a single as-of date) in the account's own currency. Will return null if the account requested is not present Can return null when outOfDateNull is enabled and where the account did not exist on the as-of date specified


fun getBalance(account: Account, asOfDate: Int?): TotalAmount?

Retrieves an account's balance (TotalAmount object) for the given as-of date, in the account's own currency. Will return null if the account / as-of date requested is not present Can return null when outOfDateNull is enabled and where the account did not exist on the as-of date specified